package com.snts.synchronization.protocol;

import com.snts.synchronization.core.ErrorObject;

public class ProtocolException extends Exception {

	private ErrorObject errorObject;
	
	public ProtocolException(ErrorObject eo) {
		super();
		errorObject = eo;
	}

	@Override
	public String getMessage() {
		return errorObject.getErrorMessage();
	}
	
	public ErrorObject getErrorObject(){
		return errorObject;
	}
	
}
